package com.win;

import com.baomidou.mybatisplus.generator.config.DataSourceConfig;
import com.fyl.utils.CodeGenerator;

public class DBDocGenerator {

    public static void main(String[] args) {
        try {

            DataSourceConfig dsc = new DataSourceConfig();
            dsc.setUrl("jdbc:mysql://localhost:3306/oauth?useUnicode=true&useSSL=false&characterEncoding=utf8&serverTimezone=GMT");
            // dsc.setSchemaName("public");
            dsc.setDriverName("com.mysql.jdbc.Driver");
            dsc.setUsername("root");
            dsc.setPassword("");
            CodeGenerator.generateDBDoc(dsc);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
